What is pied piper meaning?

The Pied Piper of Hamelin is a famous folk tale. The story dates back to the Middle Ages and is about a man who dressed in brightly colored clothing and used his magical pipe to lure rats away from the town of Hamelin. When the town refuses to pay him for his services, he uses his pipe to lure away the town's children as revenge. The story has been retold in various forms and adapted into plays, musicals, and movies. The phrase "Pied Piper" is often used metaphorically to describe someone who can charm and persuade people to do something, often with the implication that their motives may not be entirely pure.